import {Text, View, Button, Alert} from 'react-native';
import React, {Component} from 'react';

export default class ButtonCom extends Component {
  pressAlert = () => {
    Alert.alert('显示');
  };
  render() {
    return (
      <View>
        <Button title="alert" onPress={this.pressAlert} color={'#f0f8ff'} />
      </View>
    );
  }
}
